<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>订单信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
    <input type="hidden" name="tradeNo" value="$!{tradeNo}"/>
    #if($state < 6)
    <div class="layui-card">
        <div class="layui-card-body">
            #if($supplyState == 1)
            <button class="layui-btn layui-btn-fun" data-type="btnOrderConfirm">确认订单</button>
            #end
            #if($state == 1)
            <button class="layui-btn layui-btn-fun" data-type="btnStateSearch">查询支付状态</button>
            #end
            #if($state == 2)
            <button class="layui-btn layui-btn-fun" data-type="btnDeliverGoods">发货</button>
            #end
        </div>
    </div>
    #end
    <div class="layui-card">
        <div class="layui-card-header">订单基础信息</div>
        <div class="layui-card-body">
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">订单号</label>
                            <div class="layui-form-mid layui-word-aux">$!{tradeNo}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">供货状态</label>
                            <div class="layui-form-mid layui-word-aux">$!{supplyStateName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">订单状态</label>
                            <div class="layui-form-mid layui-word-aux">$!{stateName}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商城项目订单</label>
                            <div class="layui-form-mid layui-word-aux">$!{projectTradeNo}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">来源项目ID</label>
                            <div class="layui-form-mid layui-word-aux">$!{projectId}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">来源项目</label>
                            <div class="layui-form-mid layui-word-aux">$!{projectName}</div>
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品分类</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsClassifyName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm8">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品类型</label>
                            <div class="layui-form-mid layui-word-aux">$!{typeNames}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品名称</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品规格</label>
                            #if($goodsSpaceName)
                            <div class="layui-form-mid layui-word-aux">$!{goodsSpaceName}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux">--</div>
                            #end
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品单价</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品数量</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsCount}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">物流费用</label>
                            <div class="layui-form-mid layui-word-aux">$!{logisticsMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">订单总金额</label>
                            <div class="layui-form-mid layui-word-aux">$!{moneyStr}元</div>
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付金额</label>
                            <div class="layui-form-mid layui-word-aux">$!{payMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm5">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付订单</label>
                            #if($payTradeNo)
                            <div class="layui-form-mid layui-word-aux">$!{payTradeNo}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux"><span class="layui-badge layui-bg-orange">未支付</span></div>
                            #end
                        </div>
                    </div>
                    #if($payDate)
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付时间</label>
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($payDate,'yyyy-MM-dd HH:mm')}</div>
                        </div>
                    </div>
                    #end
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm8">
                        <div class="layui-form-item">
                            <label class="layui-form-label">客户备注</label>
                            #if($note)
                            <div class="layui-form-mid layui-word-aux">$!{note}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux">--</div>
                            #end
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">创建时间</label>
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm')}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div><!-- /.layui-card -->
    #if($payOrder)
    <div class="layui-card">
        <div class="layui-card-header">云支付信息</div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付订单号</label>
                        <div class="layui-form-mid layui-word-aux">$!{payOrder.tardeNo}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付结果</label>
                        #if($payResult == 200)
                        <div class="layui-form-mid layui-word-aux">支付成功</div>
                        #else
                        <div class="layui-form-mid layui-word-aux">等待支付</div>
                        #end
                    </div>
                </div>
            </div><!-- /.layui-row -->
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单标题</label>
                        <div class="layui-form-mid layui-word-aux">$!{payOrder.title}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付金额</label>
                        <div class="layui-form-mid layui-word-aux">$!{payOrder.moneyStr}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付账号</label>
                        <div class="layui-form-mid layui-word-aux">$!{payOrder.payerId}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收款账号</label>
                        <div class="layui-form-mid layui-word-aux">$!{payOrder.accountId}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
            <div class="layui-row">
                <div class="layui-col-sm8">
                    <div class="layui-form-item">
                        <label class="layui-form-label">扩展内容</label>
                        <div class="layui-form-mid layui-word-aux">$!{payOrder.extContent}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
        </div>
    </div><!-- /.layui-card -->
    #end
    #if($goodsClassify == 2)
    <div class="layui-card">
        <div class="layui-card-header">收货信息</div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值手机号</label>
                        <div class="layui-form-mid layui-word-aux">$!{receivePhone}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
        </div>
    </div><!-- /.layui-card -->
    #else
    <div class="layui-card">
        <div class="layui-card-header">收货信息</div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货人</label>
                        <div class="layui-form-mid layui-word-aux">$!{receiveName}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货手机号</label>
                        <div class="layui-form-mid layui-word-aux">$!{receivePhone}</div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-sm8">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货地址</label>
                        <div class="layui-form-mid layui-word-aux">$!{receiveAddress}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
            #if($receiveGoodsDate)
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货时间</label>
                        <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($receiveGoodsDate,'yyyy-MM-dd HH:mm')}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货人</label>
                        <div class="layui-form-mid layui-word-aux">（$!{receiveGoodsTypeName}）$!{receiveGoodsOperator}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货说明</label>
                        <div class="layui-form-mid layui-word-aux">$!{receiveGoodsNote}</div>
                    </div>
                </div>
            </div>
            #end
        </div>
    </div><!-- /.layui-card -->
    #end
    #if($goodsClassify == 1)
    <div class="layui-card">
        <div class="layui-card-header">物流信息</div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">物流公司</label>
                        #if($logisticsCompanyId)
                        <div class="layui-form-mid layui-word-aux">$!{logisticsCompany}</div>
                        #else
                        <div class="layui-form-mid layui-word-aux">商家指定</div>
                        #end
                    </div>
                </div>
                #if($logisticsTradeNo)
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">物流单号</label>
                        <div class="layui-form-mid layui-word-aux">$!{logisticsTradeNo}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">发货时间</label>
                        <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($deliverGoodsDate,'yyyy-MM-dd HH:mm')}</div>
                    </div>
                </div>
                #end
            </div>
        </div>
    </div><!--/.layui-card -->
    #end
    <div class="layui-card">
        <div class="layui-card-header">操作记录</div>
        <div class="layui-card-body">
            <table id="LAY-logs-table" lay-filter="LAY-logs-table"></table>
        </div>
    </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
    base: '$!{webRoot}/layuiadmin/' //静态资源所在路径
    ,webRoot:'$!{webRoot}'
}).extend({
    index: 'lib/index' //主入口模块
    ,market_business_order_info:'market/market_business_order_info'
}).use(['index','market_business_order_info']);
</script>
</body>
</html>